#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
from HTMLParser import HTMLParser

if __name__ == "__main__":
     html = HTMLParser("/home/manuel/cookbook/0596007973/main.html", None)
     #html = HTMLParser("/home/manuel/cookbook/0596007973/pythoncook2-chp-1-sect-14.html", None)
     #for x in range(1):
     for x in range(360):
         print html.archivo_html
         html.crear_sopa()
         html.buscar_siguiente()
         html.parser()
     html.finalizar()